package com.github.pig.training.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.Version;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 培训班
 * </p>
 *
 * @author andrew
 * @since 2018-06-23
 */
@TableName("training_class")
public class TrainingClass extends Model<TrainingClass> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "fid", type = IdType.AUTO)
    private Integer fid;
    /**
     * 班级名称
     */
    private String name;
    /**
     * 班级类型
     */
    private String type;
    /**
     * 教练
     */
    private Integer coach1;
    /**
     * 教练2
     */
    private Integer coach2;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 创建人
     */
    @TableField("create_user")
    private Integer createUser;
    /**
     * 修改时间
     */
    @TableField("update_time")
    private Date updateTime;
    /**
     * 分管领导
     */
    private Integer leader;
    /**
     * 部门
     */
    @TableField("dept_id")
    private Integer deptId;
    /**
     * 开始日期
     */
    @TableField("begin_date")
    private Date beginDate;
    /**
     * 结束日期
     */
    @TableField("end_date")
    private Date endDate;
    /**
     * 状态
     */
    @TableField("biz_status")
    private String bizStatus;
    /**
     * 版本
     */
    @Version
    private Integer version;
    /**
     * 删除标识
     */
    @TableField("del_flag")
    private String delFlag;


    public Integer getFid() {
        return fid;
    }

    public void setFid(Integer fid) {
        this.fid = fid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getCoach1() {
        return coach1;
    }

    public void setCoach1(Integer coach1) {
        this.coach1 = coach1;
    }

    public Integer getCoach2() {
        return coach2;
    }

    public void setCoach2(Integer coach2) {
        this.coach2 = coach2;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Integer createUser) {
        this.createUser = createUser;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getLeader() {
        return leader;
    }

    public void setLeader(Integer leader) {
        this.leader = leader;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public Date getBeginDate() {
        return beginDate;
    }

    public void setBeginDate(Date beginDate) {
        this.beginDate = beginDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public String getBizStatus() {
        return bizStatus;
    }

    public void setBizStatus(String bizStatus) {
        this.bizStatus = bizStatus;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    protected Serializable pkVal() {
        return this.fid;
    }

    @Override
    public String toString() {
        return "TrainingClass{" +
        ", fid=" + fid +
        ", name=" + name +
        ", type=" + type +
        ", coach1=" + coach1 +
        ", coach2=" + coach2 +
        ", createTime=" + createTime +
        ", createUser=" + createUser +
        ", updateTime=" + updateTime +
        ", leader=" + leader +
        ", deptId=" + deptId +
        ", beginDate=" + beginDate +
        ", endDate=" + endDate +
        ", bizStatus=" + bizStatus +
        ", version=" + version +
        ", delFlag=" + delFlag +
        "}";
    }
}
